home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / util / Collections$EmptyMap.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.4 KB  |  60 lines

  1. package java.util;
  2.  
  3. import java.io.Serializable;
  4.  
  5. class Collections$EmptyMap extends AbstractMap<Object, Object> implements Serializable {
  6.    private static final long serialVersionUID = 6428348081105594320L;
  7.  
  8.    private Collections$EmptyMap() {
  9.    }
  10.  
  11.    public int size() {
  12.       return 0;
  13.    }
  14.  
  15.    public boolean isEmpty() {
  16.       return true;
  17.    }
  18.  
  19.    public boolean containsKey(Object var1) {
  20.       return false;
  21.    }
  22.  
  23.    public boolean containsValue(Object var1) {
  24.       return false;
  25.    }
  26.  
  27.    public Object get(Object var1) {
  28.       return null;
  29.    }
  30.  
  31.    public Set<Object> keySet() {
  32.       return Collections.emptySet();
  33.    }
  34.  
  35.    public Collection<Object> values() {
  36.       return Collections.emptySet();
  37.    }
  38.  
  39.    public Set<Map.Entry<Object, Object>> entrySet() {
  40.       return Collections.emptySet();
  41.    }
  42.  
  43.    public boolean equals(Object var1) {
  44.       return var1 instanceof Map && ((Map)var1).size() == 0;
  45.    }
  46.  
  47.    public int hashCode() {
  48.       return 0;
  49.    }
  50.  
  51.    private Object readResolve() {
  52.       return Collections.EMPTY_MAP;
  53.    }
  54.  
  55.    // $FF: synthetic method
  56.    Collections$EmptyMap(Collections.1 var1) {
  57.       this();
  58.    }
  59. }
  60.